home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacFormat 1994 October
/
Macformat17.cdr
/
Shareware City
/
Developers
/
Think C dcmd 1.0 ƒ
/
Think Put Lib source
/
PutPStrTo.c
< prev
next >
Encoding:
Amiga (detected)
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1994-06-13
|
382 b
|
21 lines
|
[
TEXT/KAHL
]
extern unsigned char buffer[256];
extern short mark;
void PutChar(char c);
void PutSpacesTo(int endpos);
void PutPStrTo(const unsigned char* s, int endpos)
{
int i;
if ( endpos > mark )
{
for ( i=1; i<= s[0] && mark<endpos; i++ )
PutChar( s[i] );
if ( i<= s[0] )
buffer[mark] = '…';
else
PutSpacesTo( endpos ); /* pads with spaces if necessary */
}
}